package hc.bre.cmn

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
class ReferItem implements IId,ILoad{
	int id
	Integer referId;
	String referName;

	ReferItem load(Map map) {
		Integer val ;
		val = map['id'] as Integer;
		if(val == null)
		{
			throw new Exception("invalid number of Id when loading [${map}] of ${this.getClass().getName()}");
		}
		this.id = val;
		
		this.referId = map ['referId'] as Integer
		this.referName = map['referName'];
		return this;
	}
}
